import { Field, Int, ObjectType } from "@nestjs/graphql";
import { Collection } from "@prisma/client";
import { UserEntity } from "./user.entity";
import { ShopEntity } from "./shop.entity";

@ObjectType()
export class CollectionEntity implements Collection {
    @Field(() => Int)
    userId: number;

    @Field(() => UserEntity, { nullable: true })
    user: UserEntity

    @Field(() => Int)
    shopId: number;

    @Field(() => ShopEntity, { nullable: true })
    shop: ShopEntity
}